﻿package 
{
	import flash.display.Sprite;
	import flash.text.TextField;
	import flash.text.TextFormat;
	import flash.display.Shape;
	import flash.display.Graphics;


	/*==================
	*====================
	*==@Author Luanluan==
	*=====信息面板=======
	*/

	public class ScoreBoard extends Sprite
	{

		public var ScoreText:TextField=new TextField();
		public var LevelText:TextField=new TextField();

		private var NextText:TextField=new TextField();

		private var authorText:TextField=new TextField();

		public var format:TextFormat = new TextFormat("Arial",12,0x999999);
		private var Rect:Shape=new Shape();

		public function ScoreBoard()
		{

			init();

		}
		public function init():void
		{
			var g:Graphics = Rect.graphics;
			g.lineStyle(1,0x999999,1);
			//g.drawRect(0,25,160,100);
			g.drawRect(0,150,160,100);
			g.drawRect(0,275,160,86);
			addChild(Rect);
			
			NextText.text = "NEXT...";
			NextText.setTextFormat(format);
			NextText.selectable = false;
			addChild(NextText);
			
			ScoreText.text = "Score:";
			ScoreText.x=20;
			ScoreText.y=180;
			ScoreText.setTextFormat(format);
			ScoreText.selectable = false;
			addChild(ScoreText);
			
			LevelText.text = "Level:";
			LevelText.y=200;
			LevelText.x=20;
			LevelText.setTextFormat(format);
			LevelText.selectable = false;
			addChild(LevelText);
			
						
			authorText.text = "RussianGrille"+"\n"+"Author : Luanluan";
			authorText.width=160;
			authorText.multiline=false;
			authorText.wordWrap=true;
			authorText.y=290;
			authorText.x=20;
			authorText.setTextFormat(format);
			authorText.selectable = false;
			addChild(authorText);
			
			
		}

	}

}